.area_principal_centrado {
  display: flex;
  flex-direction: row;
  align-content: space-around;
  justify-content: space-around;
  align-items: center;
  
  
 
}

#area1 {
  background-color: white;
  width: 100%;
  height: 60vh;
}
#presentacion{
  height: 100%;
  margin-left: 0%;
  width: 100%;
  background-color:rgba(246, 235, 10, 0.98);
}
#titulo_pres{
  font-size: 3vw;
  color: white;
  
}
#descripcion_pres{
  font-size: 2vw;
  color: white;
  
}


#area_nosotros{
  

  width: 100%;
  height: 40vh;
  padding: 10px 10px;
  display: flex;
  flex-direction: row ;
  align-content: space-around;
  justify-content: space-around;
  align-items: center;
  padding-top: 1px;
  
}
#area_nos_der{
  width: 70%;

  display: flex;
  flex-direction: column ;
  align-content: space-around;
  justify-content: space-around;
  align-items: center;
  /* background-color: purple;   */

}
#area_nos_izq{
   
  width: 30%;
  height: 80%;
  display: flex;
  flex-direction: column ;
  align-content: space-around;
  justify-content: space-around;
  align-items: center;
  /*background-color: rgb(255, 248, 54);*/
  border-radius: 10px; 
}
#img_nosotros_logo{
  margin-left: 20%;
  width: 90%;
  height: 80%;
  border-radius: 15px;
}
#desc{
  
  color: rgb(0, 11, 105);
  width: 50%;
  font-size: 2vw;
  display: flex;
  flex-direction: row;
 
  
  
}
#area_estrellas{
  margin-top: 0vh;
  padding-top: 5vh;
  padding-bottom: 3vh;
  background-color: rgb(218, 22, 22,0.5);
  
  display: flex;
  flex-direction:column;
  align-items: center;
  color: white;

  
}
#area_servicios{
  
  
  height: 100vh;
  padding: 50px;
  display: grid;
  grid-template-columns:repeat(3,30%);
  grid-template-rows:100%;
  column-gap: 5%;
  background-color: rgba(246, 235, 10, 0.98);
  font-size: 1.8vh;
  color: #FFF;
  
}
#area_servicios #area_servicios_1{
  background-color: rgb(218, 22, 22);
  border-radius: 10px; 
  padding-top: 2vh;
  display: flex;
  flex-direction:column;
  align-items: center;
  
}
#area_servicios #area_servicios_2{
  background-color: rgb(218, 22, 22);
  border-radius: 10px; 
  padding-top: 2vh;
  display: flex;
  flex-direction:column;
  align-items: center;
}
#area_servicios #area_servicios_3{
  background-color: rgb(218, 22, 22);
  border-radius: 10px;
  padding-top: 2vh;
  display: flex;
  flex-direction:column;
  align-items: center;
}

.slider{
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.slider img{ 
  max-width: 100%; 
  max-height: 100%;
}
.slideshow{
  display: flex;
  height: 100%;
  transform: translate3d(0, 0, 0);
  transition: all 2000ms;
  animation-name: autoplay;
  animation-duration: 30s;
  animation-direction: alternate;
  animation-fill-mode: forwards;
  animation-iteration-count: infinite;
}
.item-slide{
  position: relative;
  display: flex;
  width: 100%;
  height: 100%;
  flex-direction: column;
  flex-shrink: 0;
  flex-grow: 0;
}
.pagination{
  position: absolute;
  bottom: 20px;
  left: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  width: 100%;
}
.pag-item{
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 2px solid #CCC;
  width: 16px;
  height: 16px;
  border-radius: 5px;
  overflow: hidden;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.5);
  margin: 0 10px;
  text-align: center;
  transition: all 800ms;
}
.pag-item:hover{ transform: scale(2); }
.pag-item img{
  display: inline-block;
  max-width: none;
  height: 100%;
  transform: scale(1);
  opacity: 0.5;
  transition: all 300ms;
}
.pag-item:hover img{
  opacity: 1;
}
input[id="1"]:checked ~ .slideshow{
  animation-name: autoplay1;
  /* animation: none; */
  /* transform: translate3d(cal(-100% * 0),0,0); */

}
input[id="1"]:checked ~ .pagination .pag-item[for="1"]{
  background: rgb(38, 37, 117,0.5)
}
input[id="2"]:checked ~ .slideshow{
  /* animation:none; */
  animation-name: autoplay2;
  transform: translate3d(calc(-100% * 1),0,0);
 
}
input[id="2"]:checked ~ .pagination .pag-item[for="2"]{
  background: rgb(38, 37, 117,0.5)
}
input[id="3"]:checked ~ .slideshow{
  /* animation: none; */
  animation-name: autoplay3;
  transform: translate3d(calc(-100% * 2),0,0);
}
input[id="3"]:checked ~ .pagination .pag-item[for="3"]{
  background: rgb(38, 37, 117,0.5)
}
input[id="4"]:checked ~ .slideshow{
  /* animation: none; */
  animation-name: autoplay4;
  transform: translate3d(calc(-100% * 3),0,0);
}
input[id="4"]:checked ~ .pagination .pag-item[for="4"]{
  background: rgb(38, 37, 117,0.5)
}
input[id="5"]:checked ~ .slideshow{
  /* animation: none; */
  transform: translate3d(calc(-100% * 4),0,0);
}
input[id="5"]:checked ~ .pagination .pag-item[for="5"]{
  background: #FFF;
}
@keyframes autoplay{
  25%{ transform: translate3d(calc(-100% * 0), 0, 0); }
  50%{ transform: translate3d(calc(-100% * 1), 0, 0); }
  75%{ transform: translate3d(calc(-100% * 2), 0, 0); }
  100%{ transform: translate3d(calc(-100% * 3), 0, 0); }
  /* 100%{ transform: translate3d(calc(-100% * 4), 0, 0); } */
}
@keyframes autoplay1{
  25%{ transform: translate3d(calc(-100% * 0), 0, 0); }
  50%{ transform: translate3d(calc(-100% * 1), 0, 0); }
  75%{ transform: translate3d(calc(-100% * 2), 0, 0); }
  100%{ transform: translate3d(calc(-100% * 3), 0, 0); }
  /* 100%{ transform: translate3d(calc(-100% * 4), 0, 0); } */
}
@keyframes autoplay2{
  25%{ transform: translate3d(calc(-100% * 1), 0, 0); }
  50%{ transform: translate3d(calc(-100% * 2), 0, 0); }
  75%{ transform: translate3d(calc(-100% * 3), 0, 0); }
  100%{ transform: translate3d(calc(-100% * 0), 0, 0); }
  /* 100%{ transform: translate3d(calc(-100% * 4), 0, 0); } */
}
@keyframes autoplay3{
  25%{ transform: translate3d(calc(-100% * 2), 0, 0); }
  50%{ transform: translate3d(calc(-100% * 3), 0, 0); }
  75%{ transform: translate3d(calc(-100% * 0), 0, 0); }
  100%{ transform: translate3d(calc(-100% * 1), 0, 0); }
  /* 100%{ transform: translate3d(calc(-100% * 4), 0, 0); } */
}
@keyframes autoplay4{
  25%{ transform: translate3d(calc(-100% * 3), 0, 0); }
  50%{ transform: translate3d(calc(-100% * 0), 0, 0); }
  75%{ transform: translate3d(calc(-100% * 1), 0, 0); }
  100%{ transform: translate3d(calc(-100% * 2), 0, 0); }
  /* 100%{ transform: translate3d(calc(-100% * 4), 0, 0); } */
}
/* .mySlides {display: none}
img {vertical-align: middle;} */

/* Slideshow container */
/* .slideshow-container {
  max-width: 1000px;
  width: 500px;  
  display: inline;
  position: relative; 
  top: 90px;  
} */

/* Next & previous buttons */
/* .prev, .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  padding: 5px;
  margin-top: -22px;
  color:black;
  font-weight: bold;
  font-size: 18px;
  transition: 0.6s ease;
  border-radius: 3px 3px 3px 3px;
  user-select: none;
} */

/* Position the "next button" to the right */
/* .next {
  right: 0;
  border-radius: 3px 3px 3px 3px;
} */

/* On hover, add a black background color with a little bit see-through */
/* .prev:hover, .next:hover {
  background-color: rgba(0,0,0,0.8);
} */

/* Caption text */
/* .text {
  color: black;
  font-size: 15px;
  padding: 8px 12px;
  position: absolute;
  bottom: 8px;
  width: 100%;
  text-align: center;
} */

/* Number text (1/3 etc) */
/* .numbertext {
  color: black;
  font-size: 12px;
  padding: 8px 12px;
  position: absolute;
  top: 0;
} */

/* The dots/bullets/indicators */
/* .dot {
  cursor: pointer;
  height: 15px;
  width: 15px;
  margin: 0 2px;
  background-color: #bbb;
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.6s ease;
} */

/* .active, .dot:hover {
  background-color: #717171;
} */

/* Fading animation */
/* .fade {
  animation-name: fade;
  animation-duration: .3s;
} */

/* @keyframes fade {
  from {opacity: .4} 
  to {opacity: 1}
} */

/* On smaller screens, decrease text size */
/* @media only screen and (max-width: 300px) {
  .prev, .next,.text {font-size: 11px}
} */

@media(max-width: 950px){

  #area1{
    height: 30vh;
  }
  #presentacion{
    font-size: 2.5vh;
    
    
  }
  #aytresr_principal{
      font-size: 8vh;
  }
  #desc{
    font-size: 2.3vh;
    flex-direction: column;
    width: 80%;
    align-items: center;
  }
  #desc img{
    height: 10vh;
  }
  #area_nosotros{
    padding-top: 10vh;
    height: 40vh;
  }
  #area_nosotros h1{
    font-size: 5.5vh;
    text-align: center;
   
    
  }
  #area_servicios{
    flex-direction:column-reverse;
    height:50vh ;
    grid-template-rows: 35vh;
    font-size: 1.5vh;
    
  }
  #area_servicios_descripcion{
    width: 90%;
   
  }
  #servicios_texto{
    font-size: 2vh;    
  }
  #servicios_titulo{
    font-size: 3vh;
  
  }
  .slider {
    width: 95%;
    height: 40vh;
  }
  .item-slide{
    height: 40vh;
  }
}
